package com.hy.demo.learn.thread;

/**
 * <p>
 *
 * </p>
 *
 * @author cjl
 * @version 1.0
 * @since 2020-07-29 14:30
 */
public class RunnableDemo {
    public static void main(String[] args) {
        MyRunnable myRunnable1=new MyRunnable("m1");
        MyRunnable myRunnable2=new MyRunnable("m2");
        MyRunnable myRunnable3=new MyRunnable("m3");
        Thread thread=new Thread(myRunnable1);
        Thread thread1=new Thread(myRunnable2);
        Thread thread2=new Thread(myRunnable3);
        thread.start();
        thread1.start();
        thread2.start();
    }
}
